﻿{
	"operations": {
		"addition": {
			"transport": "post",
			"target": "SampleService.php&operation=addition",
			"inputType": "json",
			"outputType": "mixed",
			"parameters": [{
				"type": "number",
				"name": "a"
			},
			{
				"type": "number",
				"name": "b"
			}],
			"returns": {
				"type": "number"
			},
			"description": "Adds two numbers"
		},
		"mergeArrays": {
			"transport": "post",
			"target": "SampleService.php&operation=mergeArrays",
			"inputType": "json",
			"outputType": "mixed",
			"parameters": [{
				"type": "array",
				"items": {
					"type": "string"
				},
				"name": "a"
			},
			{
				"type": "array",
				"items": {
					"type": "string"
				},
				"name": "b"
			}],
			"returns": {
				"type": "array",
				"items": {
					"type": "string"
				}
			},
			"description": "Merges two arrays"
		},
		"getPerson": {
			"transport": "post",
			"target": "SampleService.php&operation=getPerson",
			"inputType": "json",
			"outputType": "mixed",
			"parameters": [{
				"type": "number",
				"name": "id"
			}],
			"returns": {
				"type": "Person"
			}
		}
	},
	"types": [{
		"type": "object",
		"name": "Person",
		"properties": {
			"firstname": {
				"type": "string"
			},
			"lastname": {
				"type": "string"
			},
			"age": {
				"type": "number",
				"description": "Person's age in years."
			}
		}
	}]
}